package day20171215;

import java.io.*;
import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {

        Map<String,Integer> map = new HashMap<String, Integer>();

        try {
            BufferedReader reader = new BufferedReader(new FileReader("D:\\name.txt"));

            String sno = null;

            while ((sno = reader.readLine()) != null){
                map.put(sno,0);
            }
            File file = new File("D:\\");

            File [] files = file.listFiles();
            for (File f : files){
                String fileName = f.getName();


            }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
